package com.nmsl.nurse.controller;

import com.nmsl.nurse.domain.MWardInfo;
import com.nmsl.nurse.service.IMWardInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static com.nmsl.common.utils.PageUtils.startPage;

@RestController
@RequestMapping("/ward")
public class MWardInfoController {
    @Autowired
    private IMWardInfoService wardInfoService;

    @PreAuthorize("@ss.hasPermi('nurse:bed:list')")
    @GetMapping("/list/all")
    public List<MWardInfo> listall(MWardInfo MWardInfo)
    {
//        startPage();
        List<MWardInfo> MWardInfos = wardInfoService.selectAll(MWardInfo);
        return MWardInfos;
    }

}
